package org.sybil_pm.persistence;

import junit.framework.TestCase;

public class SybilDBTest extends TestCase {

	SybilDB testDB;
	
	
	protected void setUp() throws Exception {
		super.setUp();
	
		testDB = SybilDB.getInstance();
	
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testGenerateUID() {
		//fail("Not yet implemented");
		//test: 098f6bcd4621d373cade4e832627b4f6
		
		assertTrue(testDB.generateUID("te","st").startsWith("098f6bcd4621d373cade4e832627b4f6", 0));
		assertTrue(testDB.generateUID("4711","0815").startsWith("b66b658b016167661d470a65694d3097"));
		assertTrue(testDB.generateUID("fischers","fritz").startsWith("5bae9c80f0304a6f708efd257e16107a"));
		assertTrue(testDB.generateUID("lksd", "fasd").startsWith("ec9e1a010a5c2d128973434cdaa0ffbe"));
		
		System.out.println(testDB.generateUID("65sda4fadsf654a", "asdsadfb").length());
		
		
	}

}
